package cn.edu.scau.cmi.chenyuesong.composite.safe;
import java.util.HashSet;
import java.util.Set;

public class SafeTeam  extends SafeOrganization{

	

	private String name;
	
	private Set<SafeOrganization> children=new HashSet<SafeOrganization>();
	
	
	public SafeOrganization addChild(SafeOrganization child){
		children.add(child);
		return this;
	}
	
	
	
	public SafeOrganization removeChild(SafeOrganization child){
		children.remove(child);
		return this;
	}
	
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<SafeOrganization> getChildren() {
		return children;
	}

	public void setChildren(Set<SafeOrganization> children) {
		this.children = children;
	}
	
	public String toString() {
		return this.name;
	}
}
